/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : PostgreSQL
 Source Server Version : 130001
 Source Host           : 10.170.146.175:5432
 Source Catalog        : tysp
 Source Schema         : public

 Target Server Type    : PostgreSQL
 Target Server Version : 130001
 File Encoding         : 65001

 Date: 05/03/2021 12:38:33
*/


-- ----------------------------
-- Table structure for sheet_music
-- ----------------------------
DROP TABLE IF EXISTS "public"."sheet_music";
CREATE TABLE "public"."sheet_music" (
  "id" int8 NOT NULL,
  "name" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  "file_path" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  "file_url" varchar(512) COLLATE "pg_catalog"."default",
  "type" varchar(32) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "public"."sheet_music" OWNER TO "postgres";
COMMENT ON COLUMN "public"."sheet_music"."id" IS '乐谱id';
COMMENT ON COLUMN "public"."sheet_music"."name" IS '乐谱名称';
COMMENT ON COLUMN "public"."sheet_music"."file_path" IS '存储路径';
COMMENT ON COLUMN "public"."sheet_music"."file_url" IS '网络路径';
COMMENT ON COLUMN "public"."sheet_music"."type" IS '乐谱类型';
COMMENT ON TABLE "public"."sheet_music" IS '乐谱';

-- ----------------------------
-- Records of sheet_music
-- ----------------------------
BEGIN;
INSERT INTO "public"."sheet_music" VALUES (1, '凡尔赛', '/data/files/sheets/凡尔赛', 'http://localhost:9000/sheets/凡尔赛', 'VIOLIN');
COMMIT;

-- ----------------------------
-- Primary Key structure for table sheet_music
-- ----------------------------
ALTER TABLE "public"."sheet_music" ADD CONSTRAINT "sheet_music_pkey" PRIMARY KEY ("id");
